<template>
  <main class="main-content">
    <div class="hero-section">
      <div class="brand">吉卜力风格AI生成</div>
      <h1 class="title">将文字照片转化为吉卜力插画</h1>
      <p class="description">
        专业AI吉卜力风格转换引擎，一键生成宫崎骏风格插画。快速通过文字或图片生成吉卜力风格插画。
      </p>
      <div class="feature-buttons">
        <button class="feature-btn model">
          <span class="btn-icon">🤖</span>
          ChatGPT 4.0 模型
        </button>
        <button class="feature-btn multi">
          <span class="btn-icon">🖼️</span>
          支持多图片
        </button>
        <button class="feature-btn try">
          <span class="btn-icon">✨</span>
          免费体验
        </button>
        <button class="feature-btn gallery" @click="goToGallery">
          <span class="btn-icon">🎨</span>
          查看作品
        </button>
      </div>
    </div>

    <div class="tabs-section">
      <ImageTabs />
    </div>
  </main>
</template>

<script setup lang="ts">
import ImageTabs from '../components/ImageTabs.vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const goToGallery = () => {
  router.push('/generated-image')
}
</script>

<style scoped>
.main-content {
  padding-top: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 60px);
}

.hero-section {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 800px;
  margin-top: 2rem;
}

.brand {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 2.5rem;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.3;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  color: #fff;
  backdrop-filter: blur(4px);
}

.btn-icon {
  font-size: 1.1rem;
}

.feature-btn.model {
  background: rgba(255, 159, 67, 0.9);
}

.feature-btn.model:hover {
  background: rgba(255, 159, 67, 1);
  transform: translateY(-1px);
}

.feature-btn.multi {
  background: rgba(66, 184, 131, 0.9);
}

.feature-btn.multi:hover {
  background: rgba(66, 184, 131, 1);
  transform: translateY(-1px);
}

.feature-btn.try {
  background: rgba(75, 123, 236, 0.9);
}

.feature-btn.try:hover {
  background: rgba(75, 123, 236, 1);
  transform: translateY(-1px);
}

.feature-btn.gallery {
  background: rgba(255, 99, 71, 0.9);
}

.feature-btn.gallery:hover {
  background: rgba(255, 99, 71, 1);
  transform: translateY(-1px);
}

.tabs-section {
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
}

.cases-section {
  width: 100%;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
    margin-top: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .feature-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .feature-btn {
    width: 100%;
    justify-content: center;
  }
}
</style>
